<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Complain extends Model
{
    protected $fillable = ['order_id','description','uid'];
    public static function boot()
    {
        parent::boot();
        self::creating(function(Complain $complain){
            $complain->uid = \Auth::id();
        });
    }
}
